package com.ruoyi.yuyuan.Entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author: kestrel
 * @Version:1.0
 * @Date: 2024/6/20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_notices")
public class Notice {
    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 帖子id or 评论 id (关注为0)
     */
    private Long messageId;
    /**
     * 发送人id
     */
    private Long sendId;
    /**
     * 接收人id
     */
    private Long receiveId;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 消息类型
     */
    private String type;
    /**
     * 消息内容
     */
    private String content;
}
